package com.evony.common.server.events 
{
    import com.evony.common.*;
    
    public class DeclaredWarStatusChange extends com.evony.common.BaseBean
    {
        public function DeclaredWarStatusChange(arg1:String, arg2:Object, arg3:Boolean=false, arg4:Boolean=false)
        {
            var loc1:*=0;
            super(arg1, arg3, arg4);
            if (arg2.status != null) 
            {
                this.status = arg2.status;
            }
            if (arg2.userName != null) 
            {
                this.userName = arg2.userName;
            }
            return;
        }

        public function copyTo(arg1:com.evony.common.server.events.DeclaredWarStatusChange):void
        {
            arg1.status = this.status;
            arg1.userName = this.userName;
            return;
        }

        public override function toDebugString(arg1:String=""):String
        {
            var loc1:*=0;
            var loc2:*="---- DeclaredWarStatusChange ----\n";
            loc2 = loc2 + (arg1 + "status = " + this.status + "\n");
            loc2 = loc2 + (arg1 + "userName = " + this.userName + "\n");
            return loc2;
        }

        public function toObject():Object
        {
            var loc1:*=new Object();
            loc1.status = this.status;
            loc1.userName = this.userName;
            return loc1;
        }

        public var status:int;

        public var userName:String;
    }
}
